// import request from '/@/router/axios'
import request from "/@/utils/request"

export function getList(query) {
  return request({
    url: '/bum/incomingLine/queryList',
    method: 'get',
    params: query
  })
}
export function getQueryList(query) {
  return request({
    url: '/bum/switchRoom/queryList',
    method: 'get',
    params: query
  })
}

export function getForm(query) {
  return request({
    url: '/bum/ammeterFlow/curveQuery',
    method: 'get',
    params: query
  })
}
export function getCurveQueryEcharts(query) {
  return request({
    url: '/admin/ammeterFlow/queryMaxDemand',
    method: 'get',
    params: query
  })
}
// 任意时间
export function getCurveDMYQuery(params) {
  return request({
    url: "/bum/switchFlow/curveDMYQuery",
    method: "get",
    params,
  });
}
export function getThingModelByProductKey(params) {
  return request({
    url: "/admin/accessThingModel/getThingModelByProductKey",
    method: "get",
    params,
  });
}
export function queryMaxDemandByMonth(params) {
  return request({
    url: "/admin/ammeterFlow/queryMaxDemandByMonth",
    method: "get",
    params,
  });
}
